package net.csdn.business.notify.handler.config;

import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.Set;

/**
 * @ClassName NotifyHandlerConfigData
 * @Description 通知相关配置项
 * @Author zhangyl
 * @Date 2023/11/20 11:10
 */
@Data
@Configuration
@RefreshScope
public class NotifyHandlerConfigData {


    @Value("${cache.redis.prefix:at}")
    private String redisPrefix;

    @Value("${cache.default.time.out:60}")
    private Integer redisDefaultTimeOut;


    /**
     * 邮箱推送：ali提供的accessKeyId
     */
    @Value("${notify.email.ali.access.key:LTAI5tEsqnVy5oYngaMcPunG}")
    private String accessKey;

    /**
     * 邮箱推送：ali提供的accessKeySecret
     */
    @Value("${notify.email.ali.access.secret:mxXoMGE7wg8VUSD7CzqReawH6EDV4T}")
    private String accessSecret;

    /**
     * 邮箱推送：发信地址
     */
    @Value("${notify.email.ali.sender.account:notify@mail.atomgit.csdn.net}")
    private String senderAccount;

    @Value("${notify.email.ali.sender.alias:AtomGit}")
    private String senderAlias;
}
